package com.stylefeng.guns.modular.system.model;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 用户收藏
 * </p>
 *
 * @author stylefeng
 * @since 2019-09-09
 */
@TableName("biz_consumer_collection")
public class ConsumerCollection extends Model<ConsumerCollection> {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 收藏的时间
     */
    private Date collectionTime;
    /**
     * 收藏的状态：0为取消收藏 ，1为收藏
     */
    private Integer status;
    @TableField("customer_id")
    private Integer customerId;
    private Integer artificerId;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Date getCollectionTime() {
        return collectionTime;
    }

    public void setCollectionTime(Date collectionTime) {
        this.collectionTime = collectionTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getCustomerId() {
        return customerId;
    }

    public void setCustomerId(Integer customerId) {
        this.customerId = customerId;
    }

    public Integer getArtificerId() {
        return artificerId;
    }

    public void setArtificerId(Integer artificerId) {
        this.artificerId = artificerId;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "ConsumerCollection{" +
        "id=" + id +
        ", collectionTime=" + collectionTime +
        ", status=" + status +
        ", customerId=" + customerId +
        ", artificerId=" + artificerId +
        "}";
    }
}
